package name.cyrax.red.jpv.impl.vectors;

import name.cyrax.red.jpv.api.vectors.VectorFactory;

public abstract class NumberVectorImpl extends VectorImpl<Number>
{

	@Override public VectorFactory<Number> factory()
	{
		return VectorFactories.getNumber();
	}

	@Override public int getInteger(int index)
	{
		return getNumber(index).intValue();
	}

	@Override public long getLong(int index)
	{
		return getNumber(index).longValue();
	}

	@Override public double getDouble(int index)
	{
		return getNumber(index).doubleValue();
	}

}
